package com.liuqi.openai.model.completion;

import com.liuqi.openai.model.OpenAiModelException;
import com.liuqi.openai.model.output.Response;

/**
 * 文本生成模型 opanai api请求路径: /completions
 *
 * @author liuqi
 * @date 2025/7/19
 * @see com.liuqi.openai.model.OpenAiCompletionModel
 **/
public interface CompletionModel {

    /**
     * 生成内容
     *
     * @param prompt
     * @return
     * @throws OpenAiModelException
     */
    Response<String> generate(String prompt) throws OpenAiModelException;

}
